package day07;
import java.io.*;
/**
 * 使用字符流复制当前程序的源文件到当前项目根目录下。
 * @author Bonnie
 *
 */
public class Test05 {
    public static void main(String[] args) throws IOException {
        FileReader fr = new FileReader("Home_Work/src/day07/Test05.java");
        FileWriter fw = new FileWriter("Test05.txt");
        BufferedReader br = new BufferedReader(fr);
        BufferedWriter bw = new BufferedWriter(fw);
        String line;
        while ((line = br.readLine())!=null){
            bw.write(line);
            bw.newLine();
        }
        System.out.println("运行完毕");
        br.close();
        bw.close();
        fr.close();
        fw.close();
    }
}
